﻿using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Service.Core.Filters;

namespace Service.Auth.Api.Controller
{

    /// <summary>
    /// 基本都需要权限才能访问
    /// </summary>
    /// <param name="mediator"></param>
    [ApiController]
    [Route("api/[controller]/[action]")]
    [Authorize]
    public class BaseController(IMediator mediator) : ControllerBase
    {
        protected readonly IMediator _mediator = mediator;
    }
}